package org.easy.core.dto;


import lombok.Data;

import java.io.Serializable;

@Data
public class Pair<K, V> implements Serializable {
    private static final long serialVersionUID = 1L;
    protected K key;
    protected V value;

    public static <K, V> Pair<K, V> of(K key, V value) {
        return new Pair(key, value);
    }

    public Pair(K key, V value) {
        this.key = key;
        this.value = value;
    }

}